#include<iostream>
#include<algorithm>
using namespace std;
const int N = 1010;
int f[N];
int v[5] = { 0,10,20,50,100 };
int n, m;
int main()
{
	cin >> m;
	f[0] = 1;
	for (int i = 1; i <= 4; i++) {
		for (int j = v[i]; j <= m; j++) {
			f[j] += f[j - v[i]];
		}
	}
	cout << f[m] << endl;
	return 0;
}